package demo7;

public class break_contiune_fun {
    public static void main(String[] args) {
        int[] numbers = {10, 20, 30, 40, 50};

        for (int x : numbers) {
            if (x == 40) {
                break;
            }
            System.out.println(x);
            System.out.println("\n");
        }
        System.out.println("-----------------------");
        for (int y : numbers) {
            if (y == 30) {
                continue;
            }
            System.out.println(y);
            System.out.println("\n");
        }
    }
}
